var divGlobal;

function abrirPag(valor, div){ 
	var url = valor; 
	divGlobal = div;
	
	xmlRequest.open("GET", url, true); 
	xmlRequest.onreadystatechange = mudancaEstado; 
	xmlRequest.send(null); 
	if (xmlRequest.readyState == 1) { 
		document.getElementById("divGlobal").innerHTML = "<img src='loader.gif'>"; 
	} 
	
	return url; 
	} 
	
	 
	
	function mudancaEstado(){ 
		if (xmlRequest.readyState == 4){ 
			document.getElementById(divGlobal).style.display	= "block";
			document.getElementById(divGlobal).innerHTML = xmlRequest.responseText; 
		} 

} 


